import socket
sk=socket.socket()
sk.connect(('127.0.0.1',8080))
while True:
    c_msg=('c1:'+input('c1>>>')).encode('utf-8')
    sk.send(c_msg)
    msg=sk.recv(1024).decode('utf-8')
    print(msg)
    if msg=='bye':
        break
sk.close()